#Bleech Bouncer
#This version is from SRB2 2.0, originally created by Fawfulfan
#Have some tweaks and changes
#Have fun :3
FREESLOT
SPR_BLCH
SPR_BLGG
MT_BLECH
S_BLECH_LOOK
S_BLECH_WAIT
S_BLECH_FACETARGET
S_BLECH_JUMP1
S_BLECH_JUMP2
S_BLECH_JUMP3
S_BLECH_FALL
S_BLECH_SPAWNDROP
MT_BLECH_GOOP
S_BLECH_GOOP1
S_BLECH_GOOP2
S_BLECH_GOOP3

Object MT_BLECH
#$Name Bleech Bouncer
#$Sprite BLCHA2A8
MapThingNum = 141
SpawnState = S_BLECH_LOOK
SpawnHealth = 1
SeeState = S_BLECH_WAIT
SeeSound = sfx_None
ReactionTime = 32
AttackSound = sfx_s1cc
PainChance = 200
DeathState = S_XPLD_FLICKY
DeathSound = sfx_pop
Speed = 1
Radius = 16*FRACUNIT
Height = 62*FRACUNIT
DispOffset = 0
Mass = 100
Damage = 0
Flags = MF_ENEMY|MF_SPECIAL|MF_SHOOTABLE

State S_BLECH_LOOK
SpriteName = BLCH
SpriteFrame = A
Duration = 1
Action = A_Look
Next = S_BLECH_LOOK

State S_BLECH_WAIT
SpriteName = BLCH
SpriteFrame = A
Duration = 13
Action = A_FaceTarget
Next = S_BLECH_FACETARGET

State S_BLECH_FACETARGET
SpriteName = BLCH
SpriteFrame = A
Duration = 1
Action = A_FaceTarget
Next = S_BLECH_JUMP1

State S_BLECH_JUMP1
SpriteName = BLCH
SpriteFrame = B
Duration = 1
Action = A_BlechDust
Var1 = 8
Next = S_BLECH_JUMP2

State S_BLECH_JUMP2
SpriteName = BLCH
SpriteFrame = B
Duration = 0
Action = A_PlayAttackSound
Next = S_BLECH_JUMP3

State S_BLECH_JUMP3
SpriteName = BLCH
SpriteFrame = B
Duration = 1
Action = A_BunnyHop
Var1 = 8
Var2 = 4
Next = S_BLECH_FALL

State S_BLECH_FALL
SpriteName = BLCH
SpriteFrame = B
Duration = 1
Action = A_Boss5CheckOnGround
Var1 = S_BLECH_SPAWNDROP
Var2 = S_BLECH_SPAWNDROP
Next = S_BLECH_FALL

State S_BLECH_SPAWNDROP
SpriteName = BLCH
SpriteFrame = A
Duration = 1
Action = A_BlechGoop
Var1 = 2
Var2 = 2
Next = S_BLECH_WAIT

Object MT_BLECH_GOOP
MapThingNum = -1
SpawnState = S_BLECH_GOOP1
SpawnHealth = 9999
ReactionTime = 32
Speed = 1
PainSound = sfx_ghit
Radius = 4*FRACUNIT
Height = 4*FRACUNIT
DispOffset = 0
Mass = DMG_WATER
Damage = 0
Flags = MF_PAIN

State S_BLECH_GOOP1
SpriteName = BLGG
SpriteFrame = A
Duration = 2
Action = A_BlechGoopThink
Next = S_BLECH_GOOP2

State S_BLECH_GOOP2
SpriteName = BLGG
SpriteFrame = B
Duration = 2
Action = A_BlechGoopThink
Next = S_BLECH_GOOP1

State S_BLECH_GOOP3
SpriteName = BLGG
SpriteFrame = C
Duration = -1
Next = S_BLECH_GOOP3